<script lang="ts">
import { ref, reactive } from 'vue'
export default {
  props: {
    data: String | Array
  },
  setup(props) {
    const setupIndex = props.data
    return {
        setupIndex
    }
  }
}
</script>

<template>
  <div class="cv">
    <div class="plus">
      <el-carousel :interval="1000" arrow="always">
        <el-carousel-item v-for="(item,index) in data" :key="index">
          <h3 text="2xl" justify="center"><img :src="item.ims" alt="" srcset="" class="yk"></h3>
        </el-carousel-item>
      </el-carousel>
    </div>
  </div>
</template>

<style lang="scss" scoped>
.el-carousel__item h3 {
  color: #475669;
  opacity: 0.75;
  line-height: 300px;
  margin: 0;
  text-align: center;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}
.yk{
    width: 100%;
    // height: 300px;
}
</style>
